/*
 * event_gen.c is repsonsible for generating Common Base Events 
 * 
 *
 *
 */

#include <string.h>
#include <time.h>
#include "cbe.h"

event *new_event()
{
  time_t timer;
  event *new_event;
  new_event = calloc(1,sizeof(event));

  /* set the current time in the timestamp */
  timer = time(NULL);
  new_event->timestamp = localtime(&timer);
  return new_event;
}
